package com.easy.project.constant;

import com.easy.project.base.constant.IBaseEnumParam;
import lombok.AllArgsConstructor;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@AllArgsConstructor
public enum SexEnum implements IBaseEnumParam<Integer> {
    MAN(1,"男"),
    WOMAN(0,"女");

    /**
     * 编码
     */
    private final Integer code;
    /**
     * 描述
     */
    private final String desc;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
